<!DOCTYPE HTML>
<HTML lang="en">
<HEAD>
    <META content='text/html; charset=UTF-8' http-equiv=Content-Type>
    <META name=GENERATOR content='MSHTML 8.00.6001.19019'>
    <TITLE>{{ resourceBundle.get('security.summary.report') }}</TITLE>
</HEAD>
<BODY>
<BR>
<H2 align='center' style='BACKGROUND-COLOR: yellow;'>{{ resourceBundle.get('security.summary.report') }}</H2><BR>

<table border=0 cellSpacing=0 width='90%' align=center style='WORD-WRAP: break-word;word-break:break-all;'>
    <tr style='font-size: 17px;'>
        <td align='left' width='230'><b><a style='color:blue; text-decoration:underline;' href="./Summary.html">{{ resourceBundle.get('to.node.summary.report') }}</a></b></td>
        <td></td>
    </tr>
</table>
<BR>
<TABLE border=0 cellSpacing=0 width='90%' align=center style='WORD-WRAP: break-word;word-break:break-all;'>
    <TBODY>
    <TR>
        <TD align='left' ><span>{{ resourceBundle.get('security.item') ~resourceBundle["total"]~resourceBundle["colon"]~itemHealthStatistics["total"]~resourceBundle["semicolon"] }}</span>
            <span style='cursor: pointer;'>
                 <span>{{ resourceBundle["passing"]~resourceBundle["colon"]~itemHealthStatistics["passing"]~resourceBundle["semicolon"] }}</span></span>
            <span style='cursor: pointer;'>
                 <span>{{ resourceBundle["not.passed"]~resourceBundle["colon"]~itemHealthStatistics["not.passed"]~resourceBundle["semicolon"] }}</span></span>
            <span style='cursor: pointer;'>
                <span>{{ resourceBundle["execution.failed"]~resourceBundle["colon"]~itemHealthStatistics["execution.failed"]~resourceBundle["semicolon"] }}</span></span>
            <span style='cursor: pointer;'>
                <span>{{ resourceBundle["partially.passed"]~resourceBundle["colon"]~itemHealthStatistics["partially.passed"]~resourceBundle["semicolon"] }}</span></span>
        </TD>
    </TR>
    </TBODY>
</TABLE>
<BR><BR>
<TABLE border=1px cellSpacing=1px width='90%' align=center style='WORD-WRAP: break-word;word-break:break-all;'>
    <TBODY>
    <TR style='background-color: green;'>
        <TH align='center' rowspan="2" style="color: white">{{ resourceBundle.get('security.item.id') }}</TH>
        <TH align='center' rowspan="2" style="color: white">{{ resourceBundle.get('security.item.name') }}</TH>
        <TH align='center' rowspan="2" style="color: white">{{ resourceBundle.get('security.result') }}</TH>
        <TH align='center' rowspan="2" style="color: white">{{ resourceBundle.get('asset') }}</TH>
        <TH align='center' colspan="4" style="color: white">{{ resourceBundle.get('number.of.nodes') }}</TH>
    <TR style='background-color: green;'>
        <TH align='center' style="color: white">{{ resourceBundle.get('passing') }}</TH>
        <TH align='center'  style="BACKGROUND-COLOR:red; color: white">{{ resourceBundle.get('not.passed') }}</TH>
        <TH align='center' style="BACKGROUND-COLOR:yellow">{{ resourceBundle.get('execution.failed') }}</TH>
        <TH align='center' style="BACKGROUND-COLOR:red; color: white">{{ resourceBundle.get('total') }}</TH>
    </TR>
    </TBODY>
    {% for checkItem in checkItemInfo %}
    <TBODY>
    <TR>
        <TD align='center' >{{ checkItem.get('checkId') }}</TD>
        <TD align='center'><a href="{{'./check_items/' ~ 'result_' ~ checkItem.get('asset_id') ~ '_' ~ checkItem.get('checkId') ~ '.html'}}">{{ checkItem.get('name') }}</a></TD>
        {% if checkItem.get('status') == "execution.failed" %}
        <TD align='center' style="background: yellow; color: black">{{ resourceBundle.get(checkItem.get('status')) }}</TD>
        {% elif checkItem.get('status') == "not.passed" or checkItem.get('status') == "partially.passed" %}
        <TD align='center' style="background: red; color: white">{{ resourceBundle.get(checkItem.get('status')) }}</TD>
        {% elif checkItem.get('status') == "passing" %}
        <TD align='center' style="background: green; color: white">{{ resourceBundle.get(checkItem.get('status')) }}</TD>
        {% endif %}
        <TD align='center'>{{ checkItem.get('asset_name') }}</TD>
        <TD align='center'>{{ checkItem.get('passing') }}</TD>
        <TD align='center'>{{ checkItem.get('notPassed') }}</TD>
        <TD align='center'>{{ checkItem.get('executionFailed')|int+checkItem.get('executionTimeout')|int }}</TD>
        <TD align='center'>{{ checkItem.get('total') }}</TD>
    </TR>
    </TBODY>
    {% endfor %}
</TABLE>
<BR><BR>
</BODY>
</HTML>
